﻿using System;
using System.Collections.Generic;


namespace CSharp.NetFramework.Entities
{
  public class QualityQuestion
  {

    public QualityQuestion()
    {
      //HashSet参考： http://www.cnblogs.com/refuge/p/9465466.html
      this.QuestionDetails = new HashSet<QualityQuestionDetail>();
    }

    /// <summary>
    /// 主键
    /// </summary>
    public Guid QualityQuestionGUID { get; set; }
    /// <summary>
    /// 检查任务GUID
    /// </summary>
    public Guid? CheckTaskGUID { get; set; }
    /// <summary>
    /// 项目GUID
    /// </summary>
    public Guid? ProjectGUID { get; set; }
    /// <summary>
    /// 检查部位GUID
    /// </summary>
    public Guid? CheckPartGUID { get; set; }
    /// <summary>
    /// 检查内容GUID
    /// </summary>
    public Guid? CheckPartItemGUID { get; set; }
    /// <summary>
    /// 质量问题编号
    /// </summary>
    public string QualityQuestionCode { get; set; }
    /// <summary>
    /// 项目名称
    /// </summary>
    public string ProjectName { get; set; }
    /// <summary>
    /// 检查任务编码
    /// </summary>
    public string CheckTaskCode { get; set; }
    /// <summary>
    /// 检查部位名称
    /// </summary>
    public string CheckPartName { get; set; }
    /// <summary>
    /// 检查内容名称
    /// </summary>
    public string CheckPartItemName { get; set; }
    /// <summary>
    /// 整改完成日期
    /// </summary>
    public DateTime? PlanRepairedDate { get; set; }
    /// <summary>
    /// 复验日期
    /// </summary>
    public DateTime? PlanRecheckDate { get; set; }
    /// <summary>
    /// 整改人GUID
    /// </summary>
    public Guid? RepaireAuditorGUID { get; set; }
    /// <summary>
    /// 整改人名称
    /// </summary>
    public string RepaireAuditorName { get; set; }
    /// <summary>
    /// 复验人GUID
    /// </summary>
    public Guid? RecheckAuditorGUID { get; set; }
    /// <summary>
    /// 复验人名称
    /// </summary>
    public string RecheckAuditorName { get; set; }
    /// <summary>
    /// 整改要求
    /// </summary>
    public string RepaireRequirement { get; set; }
    /// <summary>
    /// 登记人GUID
    /// </summary>
    public Guid? CreateBy { get; set; }
    /// <summary>
    /// 登记人名称
    /// </summary>
    public string CreateByName { get; set; }
    /// <summary>
    /// 登记日期
    /// </summary>
    public DateTime? CreateDate { get; set; }
    /// <summary>
    /// 严重程度
    /// </summary>
    public string SeriousLevel { get; set; }
    /// <summary>
    /// 问题状态
    /// </summary>
    public string QuestionStatus { get; set; }
    /// <summary>
    /// 质量问题说明
    /// </summary>
    public string QualityQuestionDescription { get; set; }

    /// <summary>
    /// 编码规则
    /// </summary>
    public string CodeType { get; set; }

    /// <summary>
    /// 问题明细
    /// </summary>
    public virtual ICollection<QualityQuestionDetail> QuestionDetails { get; set; }

  }
}

